package com.zut.Pojo;

import lombok.Getter;
import lombok.Setter;

/**
 * 结果枚举类
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"响应成功"),
    UNKNOWN_ERROR(201,"未知错误"),
    PARAM_ERROR(202,"参数错误"),
    NULL_POINT_ERROR(203,"空指针异常"),
    HTTP_CLIENT_ERROR(204,"客户端连接异常");

    /**
     * 响应状态码
     */
    private Integer code;

    /**
     * 响应描述信息
     */
    private String desc;

    ResultCodeEnum(Integer code, String desc){
        this.code = code;
        this.desc = desc;
    }



}
